from enum import Enum


class ProxyType(Enum):
    Empty = 1
    Tunnel = 2
    Custom = 3
    Shared = 4


class Proxy:
    def __init__(self, meta: str, type: ProxyType):
        self.meta = meta
        self.__type = type

    def __str__(self):
        return self.meta

    def is_tunnel(self):
        return self.__type == ProxyType.Tunnel

    def is_empty(self):
        return self.__type == ProxyType.Empty

    def is_custom(self):
        return self.__type == ProxyType.Custom

    def build(self):
        return {"http": self.meta, "https": self.meta}
